<script src="__PUBLIC__/index/js/jquery.min.js"></script>
<script src="__PUBLIC__/index/js/jquery-weui.min.js"></script>
<script src="__PUBLIC__/index/js/swiper.js"></script>
<script src="__PUBLIC__/index/finishing/js/imagesloaded.pkgd.min.js"></script>

<script src="__PUBLIC__/index/finishing/js/masonry.pkgd.min.js"></script>

<script type="text/javascript">
    $(".swiper-container").swiper({
        loop: true,
        autoplay: 3000
    });

    $('.poster').click(function(){
        location.href='{:url("index/poster",["id"=>$active.id])}';
    });
    $('.sign_up').click(function(){
        location.href='{:url("signup",["id"=>$active.id])}';
    });
    $('.index_page').click(function(){
        location.href='{:url("index",["id"=>$active.id])}';
    });
    $('.intro_page').click(function(){
        location.href='{:url("intro",["id"=>$active.id])}';
    });
    $('.switch_id').click(function(){
        location.href='{:url("index",["id"=>$active.switch_id])}';
    });
    $('.search-btn').click(function(){
        location.href='{:url("index",["id"=>$active.id])}?keywords='+$('input[name=keywords]').val();
    });
    $('.reward').click(function(){
        location.href='{:url("reward",["id"=>$active.id])}';
    });

</script> 

